package com.magiccompass.alipay.barcode.zdummy;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

import com.magiccompass.alipay.barcode.util.EmailUtil;

public class MailTest {
	public static void main(String[] args) 
    {
        //Create the application context
        ApplicationContext context = new FileSystemXmlApplicationContext("D:/workspace/alipay_barcode_mc/alipay_barcode_mc/WebContent/WEB-INF/barcode-email.xml");
         
        //Get the mailer instance
        EmailUtil mailer = (EmailUtil) context.getBean("emailUtil");
 
        //Send a composed mail
        mailer.sendEmailWithAttachment("sunhaij@gmail.com", "Test Subject", "Testing body","D:/alipay_barcode_daily_settlement_file/2016/04/02/test.txt");
        
    }
}
